﻿@model CloudFranceTriple.WebRole.Models.LocalPasswordModel
@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.AccountManageTitle;
}
<div class="content-padding">
    <h1>@ViewBag.Title</h1>

    <h3>
        <a style="margin:0;padding:0;" href="/Account/UserProfileEdit" title="@CloudFranceTriple.WebRole.Properties.Resources.UserProfileManageTitle">
            @CloudFranceTriple.WebRole.Properties.Resources.UserProfileManageTitle
        </a>
    </h3>

    <p class="message-success">@ViewBag.StatusMessage</p>

    @if (ViewBag.HasLocalPassword)
    {
        @Html.Partial("_ChangePasswordPartial")
    }
    else
    { 
        @Html.Partial("_SetPasswordPartial")
    }

    <section id="externalLogins">
        @Html.Action("RemoveExternalLogins", new { area = "" })
        <h3>@CloudFranceTriple.WebRole.Properties.Resources.AccountManageAddExternalAccountTitle</h3>
        <div style="border: 1px solid #fffffe; padding: 10px; width: 432px; border-radius: 8px;">
            @Html.Action("ExternalLoginsList", new { area = "", ReturnUrl = ViewBag.ReturnUrl })
        </div>
    </section>
    <br />
    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
</div>
